package com.hspedu.properties;

import java.io.FileReader;
import java.io.IOException;
import java.util.Properties;

/**
 * @author 谷其昊
 * @version 1.0
 * @date 2022/2/26
 * @time 18:45
 */
public class Properties03 {
    public static void main(String[] args) throws IOException {
        Properties properties = new Properties();
        properties.load(new FileReader("D:\\workspace_idea\\java0\\hspedu\\chapter19\\src\\mysql.properties"));
        properties.list(System.out);
        properties.setProperty("user","newRoot");
        properties.setProperty("charSet","UTF-8");
        properties.list(System.out);
    }
}
